
import sys,os

def func(isHelp=False):
    if(isHelp):
        return ["backup","~ backup <path>","#copy > _back"]
    args=sys.argv;args=[i.replace("/","\\") for i in args]
    path=args[2];suffixInd=path.rfind('.')#确定路径  后缀名下标
    suffixInd=suffixInd if(suffixInd>=0) else len(path) #下标不存在则取最后
    name=path[:suffixInd];suffix=path[suffixInd:]#取出文件路径名称 与 后缀名
    bashCmd='COPY "%s" "%s"'%(path,name+"_back"+suffix)#拼接命令
    print(bashCmd);os.system(bashCmd)
